#ifndef CONTROL_H
#define CONTROL_H

#include <stdlib.h>
#include "type.h"
#include "alu.h"
#include "opcode.h"

#define SET 0xFFFFFFFF
#define UNSET 0

void set_flags (word instruction);
word getRegWrite (void);
word getAluSrc (void);
word getPcSrc (void);
word getPcReg (void);
word getMemWrite (void);
word getMemAddr (void);
word getRegData (void);
word getAluOp (void);
word getPortRead (void);
word getPortWrite (void);

#endif

